function instanceFactory(cObj) {
    var instance = null;
    return function () {
        if (instance) {
            return instance;
        }
        instance = new cObj(arguments);
        return instance;
    }
}